public class MethodOverload {
    int square(int x){
        return x*x;
    }
    double square(double x){
        return x*x;
    }

    public static void main(String[] args) {
        MethodOverload methodOverload = new MethodOverload();
        System.out.println(methodOverload.square(3));
        System.out.println(methodOverload.square(4.5))     ;
    }
}
